<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>备份管理</title>
    <hdjs/>
    <bootstrap/>
    <!-- <css file="__STATIC__/css/common.css"/> -->
</head>
<body>
<div class="wrap">
	<form action="{|U:'Admin/BackUp/recovery'}" method="post">
    <table class="table2">
        <thead>
        <tr>
            <td width="150">备份时间</td>
            <td>备份目录</td>
            <td width="100">选择</td>
            <td width="100">删除</td>
        </tr>
        </thead>
        <tbody>
            <foreach from="$dir" value="$v">
        	   <tr>
                    <td width="50">{$v.fileatime|date:'Y-m-d H:i:s',@@}</td>
                    <td>{$v.path}</td>
                    <td width="100"><input type="radio" name="dir" value="{$v.name}" /></td>
                    <td width="100">
                        <a href="javascript:" onclick="if(confirm('删除后就无法恢复,确定要删除吗？')) hd_ajax('{|U:'Admin/BackUp/del_data',array('dir'=>$v['path'])}')"><img src="__CONTROL_TPL__/images/116.png" alt="删除" class="img-circle" style="width:28px;height:28px;"></a>
                    </td>
                </tr>
            </foreach>
        </tbody>
    </table>
    <if value="!empty($dir)">
    <div style="margin-top:20px;margin-left:20px;">
         <!-- <a href="javascript:" onclick="if(confirm('确定要删除吗？')) hd_ajax('{|U:'Admin/BackUp/del_data',array('aid'=>3)}')"><input type="button" value="删除" class="hd-cancel"/></a> -->
        <input type="submit" value="还原" class="hd-success"/>
    </div>
    </if>
    </form>
</div>

</body>
</html>